package chainSimplification.vo;

import java.util.HashMap;

import com.jme.scene.shape.Sphere;

import dviz.visualSystem.impl.AnimationObject;

public class VertexVO extends AnimationObject {

	float x, y, z;

	public float getX() {
		return x;
	}

	public void setX(float x) {
		this.x = x;
		getRenderNode().getLocalTranslation().setX(x);
	}

	public float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
		getRenderNode().getLocalTranslation().setY(y);
	}

	public float getZ() {
		return z;
	}

	public void setZ(float z) {
		this.z = z;
		getRenderNode().getLocalTranslation().setZ(z);
	}

	public VertexVO(HashMap<String, Object> initVector) {
		super(initVector);

		Sphere sphere = new Sphere("Vertex", 10, 10, 0.1f);
		getRenderNode().attachChild(sphere);
	}
}
